package pers.jg.rrsserver.entity

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import java.sql.Timestamp
import java.time.Instant

@Entity
@Table(name = "agritainment")
open class Agritainment {
    @Id
    @Column(name = "id", nullable = false, length = 45)
    open var id: String? = null

    @Column(name = "name", length = 45)
    open var name: String? = null

    @Column(name = "img", length = 45)
    open var img: String? = null

    @Column(name = "introduction", length = 1024)
    open var introduction: String? = null

    @Column(name = "contact", length = 45)
    open var contact: String? = null

    @Column(name = "tel", length = 45)
    open var tel: String? = null

    @Column(name = "address", length = 45)
    open var address: String? = null

    @Column(name = "poster_id")
    open var posterId: Int? = null

    @Column(name = "lng")
    open var lng: Double? = null

    @Column(name = "lat")
    open var lat: Double? = null

    @Column(name = "business_hours", length = 45)
    open var businessHours: String? = null

    @Column(name = "add_time")
    open var addTime: Timestamp? = null
}